﻿using GemBox.Document;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Paragraph = GemBox.Document.Paragraph;
using Section = GemBox.Document.Section;

namespace WPFByFrameworkApp
{
    /// <summary>
    /// TestGroupDocsWindow.xaml 的交互逻辑
    /// </summary>
    public partial class TestGroupDocsWindow : Window
    {
        public TestGroupDocsWindow()
        {
            InitializeComponent();


            WriteableBitmap wb = new WriteableBitmap();

            // Set license key to use GemBox.Document in Free mode.
            ComponentInfo.SetLicense("FREE-LIMITED-KEY");

            // Create a new empty Word file.
            var doc = new DocumentModel();

            // Add a new document content.
            doc.Sections.Add(new Section(doc, new Paragraph(doc, "Hello world!")));
        }
    }
}
